<template>
  <router-view />
</template>

<script setup>
// import { getCurrentInstance } from 'vue'
// import { useRoute, useRouter } from 'vue-router'

// const route = useRoute()
// const router = useRouter()
// const { ctx, proxy } = getCurrentInstance()
// console.log(proxy.$route,'$vroute')
// console.log(route.options,'route.options')

// console.log(router)
// router.beforeEach((to, from) => {
//   console.log(to,'to')
//   // ...
//   // 返回 false 以取消导航
//   return false
// })
const theme = localStorage.getItem('theme')

if (theme) {
  document.body.setAttribute('arco-theme', theme)
}

// const current=getCurrentInstance()
// console.log(current)

// onMounted(()=>{
//   console.log(this);
// })
</script>
